package com.sanqi.work.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sanqi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sanqi.common.core.domain.BaseEntity;

/**
 * 用户账号对象 work_user_account
 * 
 * @author duany
 * @date 2025-10-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("work_user_account")
public class WorkUserAccount extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /** 用户ID */
    @Excel(name = "用户ID")
    @TableField(value="user_id")
    private String userId;

    /** OP账号 */
    @Excel(name = "OP账号")
    @TableField(value="user_op_code")
    private String userOpCode;

    /** 会员账号 */
    @Excel(name = "会员账号")
    @TableField(value="user_account")
    private String userAccount;
    
    @TableField(exist = false)
    private String userRealName;
    
    @TableField(exist = false)
    private String userWorkplaceName;
    
    @TableField(exist = false)
    private String userTeamName;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }

    public void setUserOpCode(String userOpCode) 
    {
        this.userOpCode = userOpCode;
    }

    public String getUserOpCode() 
    {
        return userOpCode;
    }

    public void setUserAccount(String userAccount) 
    {
        this.userAccount = userAccount;
    }

    public String getUserAccount() 
    {
        return userAccount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("userOpCode", getUserOpCode())
            .append("userAccount", getUserAccount())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
